package com.example.cloud.constants;

/**
 * Created by wangtao on 2018/3/2.
 */
public class CommonConstants {
    public static final Integer SUCCESS = 0;
    public static final Integer FAILURE = -1;
    public static final Integer EX_TOKEN_EMPTY_CODE = 40103;
    public static final Integer EX_TOKEN_ILLEGAL_CODE = 40104;
    public static final Integer EX_TOKEN_EXPIRED_CODE = 40105;
    public static final Integer EX_USER_INVALID_CODE = 40110;
    public static final Integer EX_NOT_FOUND_CODE = 40111;
    public static final Integer EX_SESSION_USER_NOT_FOUND_CODE = 40113;
    public static final Integer EX_PARAM_ILLEGAL_CODE = 40120;
    public static final Integer EX_NO_SERVICE_ACCESS_CODE = 40121;
    public static final String LOGIN_USER = "login_user";
    public static final String JWT_KEY_USER_ID = "current_user_id";
    public static final String JWT_KEY_USER_NAME = "current_user_name";
    public static final String JWT_KEY_CLIENT_ID = "current_client_id";
    public static final String JWT_KEY_CLIENT_SECRET = "current_client_secret";

    public static final String[] DATE_FORMATS = new String[]{"HH:mm", "yyyy-MM-dd", "yyyy-MM-dd HH:mm", "yyyy-MM-dd HH:mm:ss"};
}
